<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <title>会议报名表</title>
    <?php require 'templates/common/head.html'; ?>
    <link href="../business/resource/css/hermes.css" rel="stylesheet">
    <link href="../business/resource/js/calendar/calendar-blue.css" type="text/css" rel="stylesheet">
    <script src="../business/resource/js/calendar/calendar.js" type="text/javascript"></script>
    <script src="../business/resource/js/hermes.js"></script>
    <style type="text/css">
        .divleft{width: 5%;min-width: 5%;min-height: 6px; float: left; text-align:center; border-right: solid 1px #d5d5d5; margin-right: 2% }
        .divleft2{width: 8%; min-width: 8%;min-height: 10px; float: left; text-align:center; border-right: solid 1px #d5d5d5; margin-right: 0% ; }
        .divright{ width: 8%; float:right; text-align: center;}
        .divleft3{ width: 9%;  min-width: 9%;min-height: 10px; float: left; text-align:center;  border-right: solid 1px #d5d5d5; margin-right: 2% ;}

    </style>
</head>
<body>


<div class="container-fluid">
    <?php require 'templates/common/nav.html'; ?>
    <div class="panel panel-primary">
        <div class="panel-heading text-center"><h3 class="panel-title">会议报名人信息</h3></div>
        <div class="panel-body" style="font-size: 18px;">

            <form action="" method="post" id="form1">
           <select name="meet" id="meet" >
            <?php foreach($huiyi_res as $k =>$v):?>
               <option value="<?=$k?>"><?=$v['name']?></option>
           <?php endforeach;?>
           </select>
            </form>
        </div>
        <div class="meet_register">
            <div class="panel-body" style="font-size: 18px;">
                <b style="color:red;">报名人数共计：<?=$shanghai_count?></b>
            </div>
            <div class="panel-body">
                <div class="panel-group"   id="accordion" role="tablist" aria-multiselectable="true">
                    <div class="panel panel-default" >
                        <div class="panel-heading" style="background-color:#d5d5d5" >
                            <div class="row">
                                <div class="col-xs-4 text-justify" style="width:100%;">
                                    <div class="divleft2"><b  >姓名</b></div>
                                    <div class="divleft"><b  >性别</b></div>
                                    <div class="divleft"><b  >年龄</b></div>
                                    <div class="divleft2"><b  >单位名称</b></div>
                                    <div class="divleft"><b  >职位</b></div>
                                    <div class="divleft2"><b  >职务</b></div>

                                    <div class="divleft2"><b  >城市</b></div>
                                    <div class="divleft2"><b  >通讯地址</b></div>
                                    <div class="divleft2"><b  >邮编</b></div>
                                    <div class="divleft"><b  >电话</b></div>
                                    <div class="divleft2"><b  >邮箱</b></div>
                                    <div class="divleft"><b  >房间类型</b></div>

                                    <div class="divright"><b  >住宿时间</b></div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="panel panel-default">
                        <?php foreach($shanghai_show as $key => $value):?>
                            <div class="panel-heading"  style=" <?php if($key%2==0){echo "background-color:#DFF0D8;";}else{ echo "border-top: solid 2px #ffffff;";}?>">
                                <div class="row">
                                    <div class="col-xs-4 text-justify" style="width:100%;">
                                        <div class="divleft2"><span><?= $value['name'] ?></span></div>
                                        <div class="divleft"><span><?= $value['sex'] ?></span></div>
                                        <div class="divleft"><span><?= $value['age'] ?></span></div>
                                        <div class="divleft2"><span><?= $value['work_name'] ?></span></div>
                                        <div class="divleft"><span><?= $value['zhiwei'] ?></span></div>
                                        <div class="divleft2"><span><?= $value['zhiwu'] ?></span></div>
                                        <div class="divleft2"><span><?= $value['city'] ?></span></div>
                                        <div class="divleft2"><span><?= $value['mailing_address'] ?></span></div>
                                        <div class="divleft2"><span><?= $value['postcode'] ?></span></div>

                                        <div class="divleft2"><span><?= $value['phone'] ?></span></div>
                                        <div class="divleft2"><span><?= $value['email'] ?></span></div>

                                        <div class="divleft"><span><?= $value['room_type'] ?></span></div>
                                        <div class="divright"><span><?= $value['stay_time'] ?></span></div>

                                    </div>
                                </div>
                            </div>
                        <?php endforeach; ?>

                    </div>
                </div>
            </div>
        <?= $shanghai_page->showpage();?>
        </div>
        <div class="meet_register">
        <div class="panel-body" style="font-size: 18px;">

            <b style="color:red;">报名人数共计：<?=$shoudu_count?></b>
        </div>
        <div class="panel-body">
            <div class="panel-group"   id="accordion" role="tablist" aria-multiselectable="true">
                <div class="panel panel-default" >
                    <div class="panel-heading" style="background-color:#d5d5d5" >
                        <div class="row">
                            <div class="col-xs-4 text-justify" style="width:100%;">
                                <div class="divleft"><b  >姓名</b></div>
                                <div class="divleft"><b  >性别</b></div>
                                <div class="divleft2"><b  >科室</b></div>
                                <div class="divleft3"><b  >职位</b></div>
                                <div class="divleft2"><b  >职务</b></div>
                                <div class="divleft2"><b  >手机</b></div>
                                <div class="divleft3"><b  >邮箱</b></div>
                                <div class="divleft2"><b  >参加单位</b></div>
                                <div class="divleft2"><b  >单位电话</b></div>
                                <div class="divleft2"><b  >单位传真</b></div>
                                <div class="divleft2"><b  >意见</b></div>
                                <div class="divright"><b  >会议名称</b></div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="panel panel-default">
                    <?php foreach($shoudu_res as $key => $value):?>
                        <div class="panel-heading"  style=" <?php if($key%2==0){echo "background-color:#DFF0D8;";}else{ echo "border-top: solid 2px #ffffff;";}?>">
                            <div class="row">
                                <div class="col-xs-4 text-justify" style="width:100%;">
                                    <div class="divleft"><span><?= $value['name'] ?></span></div>
                                    <div class="divleft"><span><?= $value['sex'] ?></span></div>
                                    <div class="divleft2"><span><?= $value['keshi'] ?></span></div>
                                    <div class="divleft3"><span><?= $value['zhiwei'] ?></span></div>
                                    <div class="divleft2"><span><?= $value['zhiwu'] ?></span></div>
                                    <div class="divleft2"><span><?= $value['phone'] ?></span></div>
                                    <div class="divleft3"><span><?= $value['email'] ?></span></div>
                                    <div class="divleft2"><span><?= $value['work_name'] ?></span></div>

                                    <div class="divleft2"><span><?= $value['work_tel'] ?></span></div>
                                    <div class="divleft2"><span><?= $value['work_chuanzhen'] ?></span></div>

                                    <div class="divleft2"><span><?= $value['idea'] ?></span></div>
                                    <div class="divright"><span><?= $value['hname'] ?></span></div>

                                </div>
                            </div>
                        </div>
                    <?php endforeach; ?>

                </div>
            </div>
        </div>
    <?= $shoudu_page->showpage();?>

       </div>


    </div>


<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="../business/resource/js/jquery-1.11.1.min.js"></script>
<!-- Include all compiled plugins (below), or include individual files as needed -->
<script src="../business/resource/js/bootstrap.min.js"></script>
<script language="JavaScript">

$(function(){
    $(".meet_register").hide();
    $(".meet_register").eq(0).show();
    $("#meet").change(function(){
        var a =$("#meet").val();
       // var index_num= a.indexOf('-');
       // a= a.substring(0,index_num)
        $(".meet_register").hide();
        $(".meet_register").eq(a).show();
    })
})
</script>
</body>
</html>